//
//  ViewController.m
//  block中的全局变量循环问题
//
//  Created by MyMac on 15/8/3.
//  Copyright (c) 2015年 MyMac. All rights reserved.
//

#import "ViewController.h"
#import "FristViewController.h"
@interface ViewController ()
{
    FristViewController *_frist;

}
@property (copy, nonatomic) void(^Callblock)();


@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor=[UIColor redColor];
    // Do any additional setup after loading the view, typically from a nib.
}
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
    FristViewController*f=[[FristViewController  alloc]init];
    [self presentViewController:f animated:YES completion:nil];
    NSLog(@"%@",f.name);

}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
